package org.jeecg.modules.zcgl.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecg.common.system.base.entity.DelFlagBaseEntity;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: 维修信息
 * @Author: jeecg-boot
 * @Date:   2020-06-19
 * @Version: V1.0
 */
@Data
@TableName("zcgl_repair_info")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="zcgl_repair_info对象", description="维修信息")
public class RepairInfo extends DelFlagBaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

	/**资产名称*/
	@Excel(name = "资产名称", width = 15, dictTable = "zcgl_asset_info", dicText = "asset_name", dicCode = "id")
	@Dict(dictTable = "zcgl_asset_info", dicText = "asset_name", dicCode = "id")
    @ApiModelProperty(value = "资产名称")
    private String assetId;
	/**资产明细*/
	@Excel(name = "资产明细", width = 15, dictTable = "zcgl_asset_info_sub", dicText = "room_name", dicCode = "id")
	@Dict(dictTable = "zcgl_asset_info_sub", dicText = "room_name", dicCode = "id")
	@ApiModelProperty(value = "资产明细")
	private String assetSubIds;
	/**客户名称*/
	@Excel(name = "客户名称", width = 15, dictTable = "zcgl_customer_info", dicText = "CONCAT_WS( ';', `name`, phone )", dicCode = "id")
	@Dict(dictTable = "zcgl_customer_info", dicText = "CONCAT_WS( ' ', `name`, phone )", dicCode = "id")
    @ApiModelProperty(value = "客户名称")
    private String customerId;

	/**反馈的微信用户信息*/
	@Excel(name = "反馈的微信用户信息", width = 15, dictTable = "zcgl_attention_info", dicText = "nickname", dicCode = "id")
	@Dict(dictTable = "zcgl_attention_info", dicText = "nickname", dicCode = "id")
	@ApiModelProperty(value = "反馈的微信用户信息")
	private String attentionId;
	/**报修内容*/
	@Excel(name = "报修标题", width = 15)
	@ApiModelProperty(value = "报修标题")
	private String repairTitle;
	/**报修内容*/
	@Excel(name = "报修内容", width = 15)
	@ApiModelProperty(value = "报修内容")
	private String repairContent;
	/**报修时间*/
	@Excel(name = "报修时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "报修时间")
	private Date repairDate;
	/**处理说明*/
	@Excel(name = "处理说明", width = 15)
	@ApiModelProperty(value = "处理说明")
	private String feedbackContent;
	/**处理时间*/
	@Excel(name = "处理时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "处理时间")
	private Date feedbackDate;
	/**维修金额*/
	@Excel(name = "维修金额", width = 15)
	@ApiModelProperty(value = "维修金额")
	private BigDecimal money;
	/**处理人*/
	@Excel(name = "处理人", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "id")
	@Dict(dictTable = "sys_user", dicText = "realname", dicCode = "id")
	@ApiModelProperty(value = "处理人")
	private String handleUserId;

	/**处理状态：0未处理，10分配人员处理，20处理中，30处理完成*/
	@Excel(name = "处理状态", width = 15, dicCode = "zcgl_repair_handle_status")
	@Dict(dicCode = "zcgl_repair_handle_status")
	@ApiModelProperty(value = "处理状态")
	private Integer handleStatus;

	/**最新反馈信息记录*/
//	@Excel(name = "最新反馈信息记录", width = 15)
	@ApiModelProperty(value = "最新反馈信息记录")
	private String feedbackId;

//	/**维修内容*/
//	@Excel(name = "维修内容", width = 15)
//    @ApiModelProperty(value = "维修内容")
//    private String content;
//	/**维修时间*/
//	@Excel(name = "维修时间", width = 15, format = "yyyy-MM-dd")
//	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
//	@DateTimeFormat(pattern="yyyy-MM-dd")
//    @ApiModelProperty(value = "维修时间")
//    private Date date;
//	/**维修金额*/
//	@Excel(name = "维修金额", width = 15)
//    @ApiModelProperty(value = "维修金额")
//    private BigDecimal money;
}
